<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="text/javascript">
    function show(number){
    				for (var i = 2; i < parseInt(number); i++) {
    					if (parseInt(number)%i==0) {
    						return true;
    					}
    				}
    				return false;
    			}

    			alert(show(prompt("亲输入一个数字")));
</script>
</body>
</html>